package com.xxg.renrencommon.domain.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 分页数据信息
 *
 * @author szj
 * @date 2021/12/7
 */
@Data
@ApiModel(value = "PageInfoResult", description = "分页数据信息")
public class PageInfoResult<T> {
    @ApiModelProperty("记录总数")
    private Long totalCount;
    @ApiModelProperty("列表数据")
    private List<T> list;

    public PageInfoResult(Long totalCount, List<T> list) {
        this.totalCount = totalCount;
        this.list = list;
    }
}
